<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonList.jsp" %>
<html>
<head>
<script language="JavaScript"  src="${ctx}/scripts/common/prototype.js"></script>
<script type="text/javascript">
	function setIdentity(id){
	   if(typeof(parent.setIdentityId)=='function'){
		parent.setIdentityId(id);
		}
	}
	function showDetail(id){
		var url = "${ctx}/occupation_joinHandleAction.do?method=getJoinHandleDetailMain&id="+id;
   		top.windowOpen(url, "cc", "详细信息", 600, 900,true, "cc");
	}
	function freshFrame(){
		parent.pageNO=document.getElementById("ec_p").value;

	}
	function init(flag){
		if("hidden" == flag){
			return false;
		}
		return ShowContextMenu(event,'quick_rightmenu');
	}
</script>
</head>
<body>
 <div style="overflow:auto; height:${overflowHight==''?'360':overflowHight}px;">
<ec:ceTable items="identityList"
	action="${ctx}/occupation_joinHandleAction.do?method=identityValidateList"
	var="identityItem"
	view="pmsview"
	styleClass="gridData2"
	rowsDisplayed="15" >
	<ec:ceRow styleClass="grid" onclick="setIdentity('${identityItem.identityValidateId }')"
	  ondblclick="showDetail('${identityItem.identityValidateId }')"  onContextMenu="init('${showMemu }');" >
		<ec:ceColumn width="15%" styleClass="align_left" headerCell="pmsHeadrCell" title="楼 栋" property="buildingDomainName" sortable="true"/>
		<ec:ceColumn width="15%" styleClass="align_left" headerCell="pmsHeadrCell" title="房 号" property="houseNumber"  sortable="true"/>
		<ec:ceColumn width="15%" styleClass="align_left" headerCell="pmsHeadrCell" title="管理房号" property="coalitionHouseNumber" />
		<ec:ceColumn width="15%" styleClass="align_left" headerCell="pmsHeadrCell" title="入伙人" property="ownerName" />
		<ec:ceColumn width="15%" styleClass="align_left" headerCell="pmsHeadrCell" title="验房情况" property="inspectResult">
			<c:choose>
				<c:when test="${identityItem.inspectResult eq '001'}">未通过</c:when>
				<c:when test="${identityItem.inspectResult eq '003'}">已通过</c:when>
			</c:choose>
		</ec:ceColumn>
		<ec:ceColumn width="30%" styleClass="align_left" headerCell="pmsHeadrCell" title="入伙进程" showTitle="false" property="#" >
				<c:if test="${identityItem.identityState eq '0'}"><img src="${ctx}/images/ico_rh_zheng3.gif" alt="身份验证" width="16" height="16" border="0" align="middle"/>&nbsp;</c:if>
				<c:if test="${identityItem.identityState eq '1'}"><img src="${ctx}/images/ico_rh_zheng1.gif" alt="身份验证" width="16" height="16" border="0" align="middle"/>&nbsp;</c:if>
				<c:if test="${identityItem.docState eq '0'}"><img src="${ctx}/images/ico_rh_zi3.gif" alt="资料收发" width="16" height="16" border="0" align="middle"/>&nbsp;</c:if>
				<c:if test="${identityItem.docState eq '1'}"><img src="${ctx}/images/ico_rh_zi1.gif" alt="资料收发" width="16" height="16" border="0" align="middle"/>&nbsp;</c:if>
				<c:if test="${identityItem.chargeState eq '0'}"><img src="${ctx}/images/ico_zx_fei3.gif" alt="预交费用" width="16" height="16" border="0" align="middle" />&nbsp;</c:if>
				<c:if test="${identityItem.chargeState eq '1'}"><img src="${ctx}/images/ico_zx_fei1.gif" alt="预交费用" width="16" height="16" border="0" align="middle" />&nbsp;</c:if>
				<c:if test="${identityItem.inspectCheckinState eq '0'}"><img src="${ctx}/images/ico_zx_yan2.gif" alt="验房登记" width="16" height="16" border="0" align="middle" />&nbsp;</c:if>
				<c:if test="${identityItem.inspectCheckinState eq '1'}"><img src="${ctx}/images/ico_zx_yan1.gif" alt="验房登记" width="16" height="16" border="0" align="middle" />&nbsp;</c:if>
				<c:if test="${identityItem.handoverState eq '0'}"><img src="${ctx}/images/ico_rh_shi3.gif" alt="钥匙移交" width="16" height="16" border="0" align="middle" /></c:if>
				<c:if test="${identityItem.handoverState eq '1'}"><img src="${ctx}/images/ico_rh_shi1.gif" alt="钥匙移交" width="16" height="16" border="0" align="middle" /></c:if>
		</ec:ceColumn>
	</ec:ceRow>
</ec:ceTable>
</div>

<div id="quick_rightmenu" style="display:none;" oncontextmenu="return false" class="quick_menu2" onMouseOver="showmy2menu('quick_rightmenu')"  onMouseOut="hidden2menu('quick_rightmenu')" >
  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="grid_quickMenu_bg">
    <tr>
      <td><table width="100%" border="0" cellpadding="2" cellspacing="0">
	    <pms:AuthTag authName="occupation_joinHandleAction.do?method=addIdentityValidate">
	    <tr>
          <td class="quickMenu_toolbarico"><a href="#"  onClick="parent.openIdentityAdd();return false;" onFocus="this.blur()"><img src="${ctx}/images/ico_newfile.gif" border="0" align="absbottom" alt="新建"/>&nbsp;新 增</a></td>
        </tr>
        </pms:AuthTag>
        <pms:AuthTag authName="occupation_joinHandleAction.do?method=editIdentityValidate">
        <tr>
          <td class="quickMenu_toolbarico"><a href="#"  onClick="parent.openIdentityEdit();return false;" onFocus="this.blur()"><img src="${ctx}/images/ico_amend.gif" border="0" align="absbottom" alt="修改"/>&nbsp;修 改</a></td>
        </tr>
        </pms:AuthTag>
        <pms:AuthTag authName="occupation_joinHandleAction.do?method=deleteIdentityValidate">
        <tr>
          <td class="quickMenu_toolbarico"><a href="#" onClick="parent.showIdentityDelete();return false;" onFocus="this.blur()"><img src="${ctx}/images/ico_delete.gif" alt="" width="16" height="16" border="0" align="absbottom" /> 删
            除</a></td>
        </tr>
        </pms:AuthTag>
        <pms:AuthTag authName="occupation_joinHandleAction.do?method=editSendDoc">
         <tr>
		   <td class="hrpading"><table width="95%" border="0" align="left" cellpadding="0" cellspacing="0">
		     <tr><td class="quickMenu_line"></td></tr></table></td>
          </tr>
		<tr>
          <td class="quickMenu_toolbarico"><a href="#"  onClick="parent.openSendDoc();return false;" onFocus="this.blur()"><img src="${ctx}/images/ico_issue.gif" alt="资料收发" width="16" height="16" border="0" align="absbottom"/>&nbsp;资料收发</a></td>
        </tr>
        </pms:AuthTag>
        <pms:AuthTag authName="occupation_joinHandleAction.do?method=initHouseValidateMain">
        <tr>
         <td class="quickMenu_toolbarico"><a href="#"  onClick="parent.openHouseValidate();return false;" onFocus="this.blur()"><img src="${ctx}/images/ico_zxsf_sq.gif" alt="验房登记" border="0" align="absbottom"/>&nbsp;验房登记</a></td>
          </tr>
          </pms:AuthTag>
        <pms:AuthTag authName="occupation_joinHandleAction.do?method=editGoodsTransfer">
        <tr>
          <td class="quickMenu_toolbarico"><a href="#"  onClick="parent.openGoodsTransfer();return false;" onFocus="this.blur()"><img src="${ctx}/images/ico_yaoshi.gif" alt="物品移交" border="0" align="absbottom"/>&nbsp;物品移交&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></td>
        </tr>
        </pms:AuthTag>

      </table></td>
    </tr>
  </table>
<script type="text/javascript">

	var div1=document.getElementById('quick_rightmenu');
	if(div1.getElementsByTagName("tr").length==1){
	div1.innerHTML="";
	}
</script>
</div>
</body>
</html>